

import Vue from 'vue'
import App from './App.vue'
import actionHandler from './actionHandler'
import "./base.css"
import '@common'

import horizonOneGoodsitem from './components/horizon-one-goodsitem'
import horizonTwoGoodsitem from './components/horizon-two-goodsitem'
import horizonThreeGoodsitem from './components/horizon-three-goodsitem'
import horizonFourGoodsitem  from './components/horizon-four-goodsitem'
import horizonSwiperGoodsitem from './components/horizon-swiper-goodsitem'
import horizonVideoGoodsitem from './components/horizon-video-goodsitem'


import vertOneGoodsitem from './components/vert-one-goodsitem'
import vertTwoGoodsitem from './components/vert-two-goodsitem'
import vertThreeGoodsitem from './components/vert-three-goodsitem'
import vertFourGoodsitem from './components/vert-four-goodsitem'
import vertSwiperGoodsitem from './components/vert-swiper-goodsitem'

import videoCoverStart from './components/video-cover-start';
import awesomeSwiper from 'vue-awesome-swiper'

import floatingCartIcon from '@components/floating-cart-icon'


Vue.component('horizonOneGoodsitem', horizonOneGoodsitem);
Vue.component('horizonTwoGoodsitem', horizonTwoGoodsitem);
Vue.component('horizonThreeGoodsitem', horizonThreeGoodsitem);
Vue.component('horizonFourGoodsitem', horizonFourGoodsitem);
Vue.component('horizonSwiperGoodsitem', horizonSwiperGoodsitem);
Vue.component('horizonVideoGoodsitem', horizonVideoGoodsitem);

Vue.component('vertOneGoodsitem', vertOneGoodsitem);
Vue.component('vertTwoGoodsitem', vertTwoGoodsitem);
Vue.component('vertThreeGoodsitem', vertThreeGoodsitem);
Vue.component('vertFourGoodsitem', vertFourGoodsitem);
Vue.component('vertSwiperGoodsitem', vertSwiperGoodsitem);

Vue.component('videoCoverStart', videoCoverStart);

Vue.component('floatingCartIcon', floatingCartIcon);

Vue.use(awesomeSwiper);

Vue.mixin(actionHandler);


Vue.config.productionTip = false
document.title = "有图有真相"
new Vue({
    render: h => h(App)
}).$mount('#app')

window.addEventListener("load", function() {
    actionHandler.closeLoading();
}, false);
